<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="page"  uri="http://www.aptech.com/pager"%>
							<page:page pages="${unTakenParcel.allPage}" url="boxPackage!getUnTakenPakcages" param="&branchID=${branchID}&terminalID=${terminalID}&day=${day}"
							curpage="${unTakenParcel.curpage}" pageIndex="7" total="${unTakenParcel.total}" pageSize="${unTakenParcel.pageSize }"/>
								<table
									class="table table-striped table-bordered bootstrap-datatable dataTable" id="dateTable">
									<thead>
										<tr role="row">
											<th class="sorting_asc" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">序号</th>
											<th class="sorting_asc" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">网点设备</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">柜号</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">用户手机</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">快递单号</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">存入时间</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">滞留天数</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">验证码</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">短信情况</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">状态</th>
											<th class="sorting" role="columnheader" tabindex="0"
												aria-controls="DataTables_Table_0" rowspan="1" colspan="1">操作</th>
										</tr>
									</thead>
			
									<tbody>
											<s:if test="unTakenParcel.list.size()==0">
									    	<tr class="odd">
											  <td colspan="11">=_=没有找到任何记录。。。。。。。。</td>
											</tr>
									       </s:if>
										<s:iterator value="unTakenParcel.list" var="package" status="st">
											<tr class="odd">
												<td><s:property value="#st.index+1" /></td>
												<td><s:property value="#package.terminal.branch.branchName" /><s:property value="#package.terminal.name" /></td>
												<td class="center "><s:property value="#package.boxId" /></td>
												<td class="center "><s:property value="#package.userPhone" /></td>
												<td class="center "><s:property value="#package.parcelId" /></td>
												<td class="center"><s:date name="#package.storeTime" format="yyyy-MM-dd HH:mm:ss"/></td>
												<td class="center"><s:property value="#package.leftTime" /></td>
												<td class="center"><s:property value="#package.checkCode" /></td>
												<td class="center">
												<s:if test="#package.msgStatus==-1">发送失败</s:if>
												<s:elseif test="#package.msgStatus==1">发送成功</s:elseif>
												<s:else>未知</s:else>
												</td>
												<td class="center">
												<s:if test="#package.packageStatus==0">未取</s:if>
												<s:elseif test="#package.packageStatus==2">锁定</s:elseif>
												<s:elseif test="#package.packageStatus==4">退件</s:elseif>
												<s:else>=_=</s:else>
												</td>
												<td class="center">
												<a href="getPackageCourier?courierID=<s:property value="#package.courier.courierId" />">
													存件人详情
												</a>|
												<a href="smsStatus!getByParcelID?parcelID=<s:property value="#package.packageId" />">
													短信发送详情
												</a>|
												<a href="package!getLogParcel?packageID=<s:property value="#package.packageId" />">
													包裹操作详情
												</a>
												<s:if test="packageStatus!=5">
													|<a id="sign" href="javascript:void(0)" packageID="<s:property value="#package.packageId" />">标记</a>
												</s:if>
												<s:if test="packageStatus==2">
													|<a id="unLock" href="javascript:void(0)" packageID="<s:property value="#package.packageId" />">解锁</a>
												</s:if>
												</td>
											</tr>
										</s:iterator>
									</tbody>
								</table>
								<input type="hidden" value="${unTakenParcel.curpage}" id="curpage"/><input type="hidden" value="${unTakenParcel.pageSize }" id="pageSize"/>
								<page:page pages="${unTakenParcel.allPage}" url="boxPackage!getUnTakenPakcages" param="&branchID=${branchID}&terminalID=${terminalID}&day=${day}"
										curpage="${unTakenParcel.curpage}" pageIndex="7" total="${unTakenParcel.total}" pageSize="${unTakenParcel.pageSize }"/>